/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package view;


import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;


/**
 *
 * @author xubuntu
 */
@ManagedBean
@SessionScoped
public class NavigationBean implements Serializable {

    /**
     * Creates a new instance of NavigationBean
     */
    public NavigationBean() {
    }
    
    public String redirectToPersonalPage(){
        return "/restricted/personal.xhtml?faces-redirect=true";
    }
    
    public String toLoginPage(){
        return "/login.xhtml";
    }
    public String redirectToLoginPage(){
        return "/login.xhtml?faces-redirect=true";
    }
    
    public String redirectToNewEventPage(){
        return "/restricted/newEvent.xhtml?faces-redirect=true";
    }
    
    public String redirectToSettingsPage(){
        return "/restricted/settings.xhtml?faces-redirect=true";
    }
    
    public String redirectToCalendarPage(){
        return "/restricted/calendar.xhtml?faces-redirect=true";
    }
    
    public String redirectToNotificationsPage(){
        return "/restricted/notifications.xhtml?faces-redirect=true";
    }
    
    public String redirectToSearchFriendsPage(){
        return "/restricted/searchFriends.xhtml?faces-redirect=true";
    }
    public String redirectToEventPage(){
        return "/restricted/event.xhtml?faces-redirect=true";
    }
    
    public String redirectToDeclinedEventsPage(){
        return "/restricted/declinedEvents.xhtml?faces-redirect=true";
    }
    
    public String redirectToPastEventsPage(){
        return "/restricted/pastEvents.xhtml?faces-redirect=true";
    }
    
    public String redirectToPrivatePagePage(){
        return "/restricted/privatePage.xhtml?faces-redirect=true";
    }
    
    public String redirectToExternalErrorPage(){
        return "/externalError.xhtml?faces-redirect=true";
    }
    
    public String redirectToEditEventPage(){
        return "/restricted/editEvent.xhtml?faces-redirect=true";
    }
    public String redirectToErrorMeteoPage(){
        return "/restricted/errorMeteo.xhtml?faces-redirect=true";
    }
}
